<?php
$at = array(
    'class' => 'well'
);
echo form_open('main/home', $at);
?>
<label>Agama</label>
<input class="span3" type="text" placeholder="Masukkan agama...">
<button class="btn btn-primary" type="submit"><i class="icon-plus icon-white"></i> Tambah</button>
<?php echo form_close() ?>
<div class="row-fluid">
    <div class="span8">
        <table class="table table-striped table-bordered table-condensed">
            <thead>
                <tr>
                    <th>No KK</th>
                    <th>Nama</th>
                    <th>Tanggal</th>
                    <th>Username</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($kk as $pd) : ?>
                    <tr>
                        <td><a href="<?php echo site_url() ?>/detail/kk/<?php echo $pd->id ?>"><?php echo $pd->id ?></a></td>
                        <td>
                            <?php
                            $nama = $pd->nama;
                            $nik = $pd->nik;
                            echo anchor('detail/nik/'.$nik, $nama);
                            ?>
                        </td>
                        <td><?php echo $pd->tanggal ?></td>
                        <td><?php echo $pd->username ?></td>
                        <td><a class="" href="#" alt="Edit"><i class="icon-pencil tool"></i></a> | <a class="" href="#" alt="Hapus"><i class="icon-remove tool"></i></a></td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div><!--/span-->
</div>